package com.qf.smsplatform.interfaces.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * projectName: smsplatform
 *
 * @author: MaTianWei
 * time: 2021/8/11 21:35
 * description:映射缓存模块的Client接口
 */
@FeignClient(value = "sms-platform-cache")
public interface CacheClient {
    //通过key获取hash结构中所有field和value封装成map返回
    @RequestMapping(value = "/cache/hmget/{key}", method = RequestMethod.GET)
    public Map hGetAll(@PathVariable("key") String key);
}
